<? if(0) {?>//<script language="Javascript"><? }


if( $Engine->request->action == "edit" || $Engine->request->action == "edit.new" ) {







}






/*

	$Page = new PAGE( $_set->vars->meta->page );
	
		if($_set->action == "edit.new"){
			
			if( !$_set->vars->modtype ) $_set->vars->modtype = "text.basic";
			$module = $Page->mods->request_json( $_set->vars->meta->objid );
			
			$DB->query("INSERT INTO moddump (json, llog, author) values('". json_encode( $module ) ."', now(),".$_SESSION['uid'].")", 0 );
			$id = $_set->vars->id = (int) $DB->query_direct( "select max(ID) from moddump" );
			
			if( !$pagemods = $Page->get( "mods" )) $pagemods = (object) array();
			
			$pagemods->{ $_set->vars->ctype }[] = $id;
			$DB->query("update pages set mods='". json_encode( $pagemods ) ."' where ID='". $_set->vars->parentid ."'");
			
			$idstring = $_set->vars->page . "." . $_set->vars->ctype;
			?>
			$("<?= "page.$idstring.box"?>").appendChild( win.float.el({id:"<?= "$id.". $idstring .".". rand()?>", type:'mod', tool:'object.mod', name:"...", descr:"<?=$_set->vars->modtype?>", meta:{ page:"<?=$_set->vars->page?>", column:"<?=$_set->vars->ctype?>", objid:<?=$id?>}}) );
			win.asset.dropbox.list["sitemap"].floats.push(<?=$id?>);
			win.asset.dropbox.sortable("<?=$_set->vars->type;?>");

		<? } else $module = $Page->mods->request_json( $_set->vars->meta->objid );
		
		
		if( $module->nameid ) {
			$langs	= $Engine->text->filter( $module->nameid );
			$title	= $langs[ LANG ];
		}
		if( $module->textid ) {
			$long	= $Engine->text->filter( $module->textid, "long" );
		}
		
		?>

		ref.seed([
			tag("font", {style:"font-size:18px"}, "Beheer module "), tag("a", {id:ref.id+".h1", href:"http://<?=engine_get('control.public')?>/<?=$_set->vars->meta->page?>", target:"_blank", style:"font-size:18px"}, "<?=$title?>"), " (view)", br,
			tag("input", {id:ref.id+".title"}), tag("div", {id:ref.id+".text"})
		]);
		
		
		[{id:ref.id+".title",descr:'name page', direct:1, parenttype:"mod", parentid:<?= $Page->get('ID') ?> <?=($module->nameid)?",textid:".$module->nameid:""?>, values:<?=($langs)?json_encode($langs):"{}"?>},
		{id:ref.id+".text", rich:1, ref:'basictxt', descr:'basic text (optional)', parenttype:"mod", parentid:<?= $Page->get('ID') ?>, direct:1<?=($module->textid)?",textid:".$module->textid:""?>, values:<?=($long)?json_encode($long):"{}"?>}].each(function(obj){ win.asset.txtfield.build(obj); });

		<?
		
*/		?>